package cn.wolfcode.crm.service.impl;

import cn.wolfcode.crm.mapper.ChartMapper;
import cn.wolfcode.crm.query.CompensationQueryObject;
import cn.wolfcode.crm.query.SaleChartQuery;
import cn.wolfcode.crm.service.IChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ChartServiceImpl implements IChartService {

    @Autowired
    private ChartMapper chartMapper;

    /**
     * 销售报表的查询
     * @param qo 销售报表查询的对象
     * @return
     */
    @Override
    public List<Map<String, String>> querySaleChart(SaleChartQuery qo) {
        return chartMapper.querySaleChart(qo);
    }

    /**
     * 理赔报表的查询
     * @param qo 理赔查询的对象
     * @return
     */
    @Override
    public List<Map<String, Object>> compensationQuery(CompensationQueryObject qo) {
        return  chartMapper.compensationQuery(qo);
    }

}
